<template>
  <div class="Footer">
    <h1>这里是下部内容 count{{count}}</h1>
    <h2>获取电影列表<button @click="getMovie">获取电影列表</button></h2>
    <ul>
      <li v-for="item in movieList" :key='item.tvId'>{{item.name}}</li>
    </ul>
  </div>
</template>

<script>
import { mapActions, mapState } from 'vuex'
export default {
    name:'Footer',
     //计算属性得到一个值,并监听
    computed:{
      ...mapState(['count','movieList'])
    },
    //绑定事件
    methods:{
      ...mapActions(['getMovie'])
    }



}
</script>

<style>
.Footer{
  text-align: center;
  background-color: aqua;
}
</style>